<?php

namespace App\Http\Requests\Admin;

use Illuminate\Foundation\Http\FormRequest;

class SchoolStoreRequest extends FormRequest
{
    /**
     * Get the validation rules that apply to the request.
     *
     * @return array
     */
    public function rules(): array
    {
        return [
            'name' => 'bail|required|string',
            'province' => 'bail|required|array',
            'province.*' => 'bail|string',
            'url' => 'bail|required|string',
            'type' => 'bail|required|string',
            'level' => 'bail|required|string',
            'bxType' => 'bail|required|string',
            'thumb' => 'bail|nullable|string',
            'city' => 'bail|required|string',
            'address' => 'bail|required|string',
            'tel' => 'bail|required|string',
            'email' => 'bail|nullable',
            'logo' => 'bail|nullable|string',
            'baoMingUrl' => 'bail|nullable|url',
            'chengJiUrl' => 'bail|nullable|url',
            'fenShuUrl' => 'bail|nullable|url',
            'createYear' => 'bail|nullable|integer',
            'area' => 'bail|nullable|string',
            'jiaoYuTing' => 'bail|nullable|string',
            'detail' => 'bail|nullable|string',
            'tags' => 'bail|nullable|string',
            'images' => 'bail|nullable|array',
            'spec' => 'bail|nullable|array',
        ];
    }
}
